﻿using UnityEngine;
using System.Collections;

public class ScanLineManager : MonoBehaviour {

    public float normalRotationRate = 90;
    public float centerRotationRate = 90;   // Rotation rate of the scanning arc in degrees/s (can be negative)

    public float arcSize = 30;
    public float currentArcSize = 30;      // The current size of the arc in degrees
    public float scanDistance = 4;          // The range of the scan in Unity measurements (from the center)


	// Use this for initialization
	void Start () {
        centerRotationRate = normalRotationRate;
	}

    // Update is called once per frame
    void Update()
    {

        // Rotate this object to rotate the arc center
        transform.Rotate(transform.forward, centerRotationRate * Time.deltaTime);

	}


}
